package edu.fim.data;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class JPAUtil {

	public static EntityManager createEntityManager(String persistenceUnitName) {
		EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnitName);
		return emf.createEntityManager();
	}
}